package com.ayf.payment.game.api.mapper;

import com.ayf.payment.game.api.dto.ProxyGroupRateDTO;
import com.ayf.payment.game.api.entity.ProxyGroupRate;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface ProxyGroupRateMapper extends Mapper<ProxyGroupRate> {

    /**
     * 添加分组费率信息
     *
     * @param groupId
     * @param groupRateList
     * @return
     */
    int insertRates(@Param("groupId") Integer groupId, @Param("list") List<ProxyGroupRateDTO> groupRateList);

    /**
     * 删除分组费率信息
     *
     * @param groupId
     * @return
     */
    int deleteRates(@Param("groupId") Integer groupId);

    /**
     * 批量删除分组费率信息
     *
     * @param groupIds
     * @return
     */
    Integer deleteRatesByGroupIds(@Param("groupIds") List<Integer> groupIds);
}